package varton.shallow;

import java.util.ArrayList;

public class MainMethod {
    public static void main(String[] args) {
        AirConditionShell ac = new AirConditionShell();
        ac.setShape("长方形");
        ArrayList<String> colors = new ArrayList<>();
        colors.add("白色");
        colors.add("瑰红色");
        ac.setColors(colors);
        try {
            AirConditionShell acs = (AirConditionShell) ac.clone();
            System.out.println(ac == acs);
            System.out.println(ac.getShape() == acs.getShape());
            System.out.println(ac.getColors() == acs.getColors());
        } catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
    }
}
